/*
@ClassName JobSchedule
@Description TODO
@Author SubUp
@Date   2022/7/31
@Version 1.0
*/

package com.sunjob.common.domain.scheduleServer;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.sunjob.common.domain.loginServer.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class JobSchedule extends ScheduleEntity {
    /* 主键 任务编号*/
    @Id
    private Long jobId;
    /* 计划编号 */
    private Long planId;
    /* 作业级别 */
    private Integer jobLevel;
    /* 技术员工号 */
    private String staffId;
    /* 技术员姓名 */
    private String staffName;
    /* 技术员职位 */
    private Integer staffPosition;
    /* 作业执行时间 */
//    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private Date jobExecuteTime;
    /* 作业反馈结果 */
    private Integer jobFeedBack;

//    @Deprecated
    private PlanSchedule planSchedule;
}
